import request from '@/util/ajax.js'

export function getRolesAPI(reqData) {
  return request({
    url: '/back_front/roles/getService',
    method: 'get',
    params: reqData
  })
}

export function getRolesAllAPI() {
  return request({
    url: '/back_front/roles/getAllService',
    method: 'get'
  })
}

export function createRoleAPI(reqData) {
  return request({
    url: '/back_front/roles/createService',
    method: 'post',
    data: reqData
  })
}

export function editRoleAPI(reqData) {
  return request({
    url: '/back_front/roles/editService',
    method: 'post',
    data: reqData
  })
}
